package com.digital.smartgrow.dto.businesscenter;

import com.digital.smartgrow.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 资讯管理
 * </p>
 *
 * @author xiewb
 * @since 2022-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="NewsDTO对象", description="资讯管理")
public class NewsPageDTO extends PageDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "资讯类别")
    private String category;

    @ApiModelProperty(value = "状态，0：禁用，1：启用")
    private Integer status;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;


}
